﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<RegistrationModel>" %>

<%@ Import Namespace="TeamCommunitySolution.Models" %>
<asp:Content ID="indexTitle" ContentPlaceHolderID="TitleContent" runat="server">
    PaintBall Bunker : Home of the elite paintball players.
</asp:Content>
<asp:Content ID="indexContent" ContentPlaceHolderID="MainContent" runat="server">

    <script type="text/javascript" src="/Scripts/pages/home.index.js"></script>

    <div style="float: left; width: 45%;">
        <%= Html.ValidationSummary("Create was unsuccessful. Please correct the errors and try again.") %>
        <% using (Html.BeginForm("Register", "Home", FormMethod.Post, new { id = "registrationForm" }))
           { %>
        Welcome to the home of elite paintball. Here you can track your progress through
        your paintball career. It is simple and it is free, enter your details below and
        you will have access to one of the premium sources of information for paintball
        on the net. <span id="status"></span>
        <fieldset>
            <p>
                <label for="FirstName">
                    First Name:</label>
                <%= Html.TextBox("FirstName") %>
                <%= Html.ValidationMessage("FirstName", "*") %>
                <br />
                <span id="firstNameError" class="red small right"></span>
            </p>
            <p>
                <label for="LastName">
                    Last Name:</label>
                <%= Html.TextBox("LastName") %>
                <%= Html.ValidationMessage("LastName", "*") %>
                <br />
                <span id="lastNameError" class="red small"></span>
            </p>
            <p>
                <label for="EMail">
                    Email:</label>
                <%= Html.TextBox("EMail") %>
                <%= Html.ValidationMessage("EMail", "*") %>
                <br />
                <span id="emailError" class="red small right"></span>
            </p>
            <p>
                <label for="NickName">
                    Nick Name:</label>
                <%= Html.TextBox("NickName") %>
                <%= Html.ValidationMessage("NickName", "*") %>
                <span id="NickValidation"></span>
                <br />
                <span id="nickError" class="red small right"></span>
            </p>
            <p>
                <label for="Password">
                    Password:</label>
                <%= Html.Password("Password") %>
                <%= Html.ValidationMessage("Password", "*") %>
                <br />
                <span id="passwordError" class="red small right"></span>
            </p>
            <p>
                <label for="ConfirmPassword">
                    Confirm Password:</label>
                <%= Html.Password("ConfirmPassword") %>
                <%= Html.ValidationMessage("ConfirmPassword", "*") %>
                <br />
                <span id="confirmPasswordError" class="red small right"></span>
            </p>
            <p>
                <label for="BirthYear">
                    Birthdate:</label>
                <%= Html.DropDownList("BirthYear", TeamCommunitySolution.MvcApplication.YearList)%>
                <%= Html.DropDownList("BirthMonth", TeamCommunitySolution.MvcApplication.MonthList)%>
                <%= Html.DropDownList("BirthDay", TeamCommunitySolution.MvcApplication.DayList)%>
            </p>
            <p>
                <input type="submit" value="Register" id="Register" />
            </p>
        </fieldset>
        <% } %>
    </div>
    <div style="float: right; width: 45%;">
        <%= Html.ValidationSummary("Create was unsuccessful. Please correct the errors and try again.") %>
        <% using (Html.BeginForm("LogOn", "Account", FormMethod.Post, new { id = "loginForm" }))
           { %>
           <%= Html.Hidden("returnUrl", "/SystemUser/PersonalProfile")%>
        Once you have completed the registration process, enter your login details below and 
        enjoy.
        <fieldset>
            <p>
                <label for="userName">
                    Email:</label>
                <%= Html.TextBox("userName") %>
                <br />
                <span id="userNameError" class="red small right"></span>
            </p>
            <p>
                <label for="loginPassword">
                    Password:</label>
                <%= Html.Password("loginPassword") %>
                <br />
                <span id="loginPassword" class="red small right"></span>
            </p>
            <p>
                <label for="rememberMe">
                    Remember Me:</label>
                <%= Html.CheckBox("rememberMe") %>
            </p>
            
            <p>
                <input type="submit" value="Login" id="login" />
            </p>
        </fieldset>
        <% } %>
    </div>
    <div id="dialog">
        <div id="dialogContent">
        </div>
    </div>
</asp:Content>
